package cn.tonyandmoney.voicenotes.notes.bean

import org.jetbrains.anko.AnkoLogger

data class PageEntity<T>(var offset: Int = 0,
                         var limit: Int = 10,
                         var page: List<T> = emptyList(),
                         var total: Long = 0) : AnkoLogger {


    fun canLoadMore(): Boolean {
        return offset + page.size < total  && page.isNotEmpty()
    }
}